package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.yu.crm.domain.request.NodeRoleUserReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 工作流节点表
 * </p>
 *
 * @author donnie-bin
 * @since 2019-10-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WfNodeInfo对象", description="工作流节点表")
public class WfNodeInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "节点id")
    @TableField("node_id")
    private String nodeId;

    @ApiModelProperty(value = "应用id")
    @TableField("app_id")
    private String appId;

    @ApiModelProperty(value = "节点名称")
    @TableField("node_name")
    private String nodeName;

    @ApiModelProperty(value = "节点描述")
    @TableField("node_desc")
    private String nodeDesc;

    @ApiModelProperty(value = "是否为根节点  0:否，1:是")
    @TableField("is_root")
    private Integer isRoot;

    @ApiModelProperty(value = "创建时间")
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField("gmt_modified")
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "是否已删除 yes_no")
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "节点角色用户集合")
    @TableField(exist = false)
    private List<NodeRoleUserReq> nodeRoleUserReqList;

    @ApiModelProperty(value = "是否是全部人员0 : 否 1：全部（多数针对于发起节点）")
    @TableField(exist = false)
    private Integer isAll;

    //动作信息
    @TableField(exist = false)
    private List<WfActionInfo> actionInfoList;
}
